export default {
  color: ['#408EF6', '#F76B1C'],
  tooltip: {
    trigger: 'axis',
    axisPointer: {            // 坐标轴指示器，坐标轴触发有效
      type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
    }
  },
  grid: {
      left: '3%',
      right: '4%',
      bottom: '3%',
      containLabel: true
  },
  series: [
    {
      name: '数量',
      type: 'bar',
      itemStyle: {
        normal: {
          color: function (params) { // 给出颜色组 
            var colorList = ['#cca272', '#74608f', '#d7a02b', '#c8ba23'];
            return colorList[params.dataIndex]
          },
        }
      },
      //柱状图宽度
      barWidth: '30%',
      //柱状图数值
      data: [
        {value: 5000, name: 'www'},
        {value: 6000, name: 'www1'},
        {value: 7000, name: 'www2'}
      ]
    },
    {
      name: '数量',
      type: 'bar',
      itemStyle: {
        normal: {
          color: function (params) { // 给出颜色组 
            var colorList = ['#cca272', '#74608f', '#d7a02b', '#c8ba23'];
            return colorList[params.dataIndex]
          },
        }
      },
      //柱状图宽度
      barWidth: '30%',
      //柱状图数值
      data: [
        {value: 5000, name: 'www'},
        {value: 6000, name: 'www1'},
        {value: 7000, name: 'www2'}
      ]
    },
  ],
  legend: {
    orient: 'horizontal',
    x: 'right',
    data: ['湖北', '武汉']
  },
  dataset: {
    source: [
      ['product', '湖北', '武汉'],
      ['核酸检测例数', 3932, 2450],
      ['库存病例', 2375, 0],
      ['阳性病例', 850, 757],
      ['阳性率', 2160, 2000]
    ]
  },
  xAxis: [
    {
      type: 'category',
      data: ['核酸检测例数', '库存病例', '阳性病例', '阳性率'],
      axisLabel:{
        interval: 0,//横轴信息全部显示
      }
    }
  ],
  yAxis: [
    {
      max: 8000,
      min: 0,
      type: 'value',
      minInterval: 2000,
    }
  ],
  series: [
    {type: 'bar'},
    {type: 'bar'},
  ],
  tooltip: {},
};
